//
//  LMTelViewController.m
//  彩票
//
//  Created by 张青花 on 15/10/8.
//  Copyright (c) 2015年 李明. All rights reserved.
//

#import "LMTelViewController.h"
#import "LMTelHeadView.h"

@interface LMTelViewController ()

@end

@implementation LMTelViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tableView.tableHeaderView = [LMTelHeadView headerView];
    // Do any additional setup after loading the view.
    LMSettingObject *item1 = [LMSettingObject SettingObjectWithIcon:nil title:@"评分支持" type:@"1"];
    
    
    item1.operationBlock =^{
      
        NSString *url = [NSString stringWithFormat:@"item-apps://itunes.apple.com/cn/app/%@?mt-8",@"2323232"];
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
    };
    LMSettingObject *item2 = [LMSettingObject SettingObjectWithIcon:nil title:@"客服电话" type:@"1"];
    item2.subtitle =@"10086";
    
    item2.operationBlock =^{
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10010"]];
    };
    
    
    LMSettingObjectGroup *group1 = [[LMSettingObjectGroup alloc] init];
    group1.items =  @[item1,item2];
    
    [self.settingitemArray addObject:group1];
}



@end
